package org.maitaole.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.maitaole.entity.TbCategory;

import java.util.List;

@Mapper
public interface TbCategoryMapper extends BaseMapper<TbCategory> {

    List<TbCategory> selectAllByCategoryId();

    int deleteByPrimaryKey(Integer categoryId);

    int insert(TbCategory record);

    int insertSelective(TbCategory record);

    TbCategory selectByPrimaryKey(Integer categoryId);

    int updateByPrimaryKeySelective(TbCategory record);

    int updateByPrimaryKey(TbCategory record);
}